import {createApp} from "vue";
import App from "./App.vue";
import router from './router';
import store from './store/index.js';
import Cookies from 'js-cookie'
// svg图标
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon'
import elementIcons from '@/components/SvgIcon/svgicon'
import locale from 'element-plus/lib/locale/lang/zh-cn' // 中文语言
import ElementPlus from 'element-plus'
import '@/assets/styles/index.scss' // global css

var app = createApp(App);
app.use(router);
app.component('svg-icon', SvgIcon);
app.use(store);
app.use(elementIcons);
// 使用element-plus 并且设置全局的大小
app.use(ElementPlus, {
    locale: locale,
    // 支持 large、default、small
    size: Cookies.get('size') || 'default'
})
app.mount("#app");
